module.exports = {
  devServer: {
    proxy: {
      '/v2': {
        target: 'https://geoapi.qweather.com',
        changeOrigin: true
        // pathRewrite: {
        //  '^/api': ''
        // }
      },
      '/v7/historical': {
        target: 'https://datasetapi.qweather.com',
        changeOrigin: false
      },
      '/v7': {
        target: 'https://devapi.qweather.com',
        changeOrigin: true
      }
    }
  }
}
